<form method="post" enctype="multipart/form-data" target="_blank" id="form-order">
    <div class="table-responsive">
        <table class="table table-bordered table-hover">

            <thead>
            <tr>
                <td class="text-center" width="65px;">序号</td>
                <td class="text-center">优惠券名称</td>
                <td class="text-center">使用场景</td>
                <td class="text-center">金额</td>
                <td class="text-center">有效时间(天)</td>
                <td class="text-center">使用条件</td>
                <td class="text-center">操作</td>
            </tr>
            </thead>

            <tbody>
            <volist name="list" id="list">
                <tr>

                    <td class="text-center">{$list.couponId}</td>
                    <td class="text-center">{$list.couponName}</td>
                    <td class="text-center">{$couponType[$list.couponType]}</td>
                    <td class="text-center">{$list.couponAmount}</td>
                    <td class="text-center">发放/领取：{$list.validTime}天内</td>
                    <td class="text-center">满：{$list.useCondition}元可使用</td>

                    <td class="text-center">
                        <a href="javascript:;" onclick="layerAlert('编辑优惠券', '{:U('market/edit', array('couponId' => $list.couponId))}', '70%', '85%')" class="btn btn-primary" title="编辑"><i class="fa fa-pencil"></i></a>
                        <a href="javascript:;" onclick="delfunc(this)" data-url="{:url('market/del')}" data-id="{$list.couponId}"  class="btn btn-danger" title="删除"><i class="fa fa-trash-o"></i></a>
                    </td>
                </tr>
            </volist>

            </tbody>
        </table>
    </div>
</form>
<div class="row">
    <div class="col-sm-3 text-left"></div>
    <div class="col-sm-9 text-right">{$page}</div>
</div>
<script>
    // 点击分页触发的事件
    $(".pagination  a").click(function(){
        cur_page = $(this).data('p');
        ajax_get_table('search-form', cur_page);
    });

</script>